package GetBound;
import javax.swing.*;
import java.awt.*;
public class getbound  {
    public static Rectangle getBound(){
        Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
        Insets scr=Toolkit.getDefaultToolkit().getScreenInsets(new JFrame().getGraphicsConfiguration());
        Rectangle rectangle = new Rectangle(scr.left,scr.top,screenSize.width-scr.left-scr.right,
                screenSize.height-scr.top-scr.bottom);
        return rectangle;
    }
}
